package template;

public abstract class CommonMethod {

    public abstract void primitiveOperation1();
    public abstract void primitiveOperation2();

    public final void templateMethod () {
        primitiveOperation1();
        primitiveOperation2();
        System.out.println("------模板方法模式------");
    }
}
